package com.tank.vo;

import com.tank.bean.User;

public class Buddy {
	Integer id;
	String name;
	String photo;
	
	boolean both;
	
	User user;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPhoto() {
		return photo;
	}
	public void setPhoto(String photo) {
		this.photo = photo;
	}
	public boolean isBoth() {
		return both;
	}
	public void setBoth(boolean both) {
		this.both = both;
	}
	public Buddy(String name) {
		super();
		this.name = name;

	}
	public Buddy(String name,boolean both) {
		super();
		this.name = name;
		this.both=both;
	}
	
	public Buddy(User user,boolean both) {
		super();
		this.user=user;
		this.both=both;
	}
	
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Buddy(Integer id, String name, String photo, boolean both) {
		super();
		this.id = id;
		this.name = name;
		this.photo = photo;
		this.both = both;
	}
	
	@Override
	public String toString() {
		StringBuilder sb=new StringBuilder();
		sb.append("{");
		sb.append("用户id：").append(this.getId());
		sb.append(",用户名：").append(this.getName());
		sb.append(",用户头像：").append(this.getPhoto());
		sb.append(",是否互粉：").append(this.isBoth());
		sb.append("}");
		return sb.toString();
	}
}	
